#!/usr/bin/env python

from google.appengine.ext import db
from google.appengine.api import users
from google.appengine.ext import webapp


class GreetingInfo(db.Model):
    name=db.StringProperty
    
class Greeting(db.Model):
    """Models an individual Guestbook entry with an author, content, and date."""
    author = db.UserProperty()
    content = db.StringProperty(multiline=True)
    date = db.DateTimeProperty(auto_now_add=True)
    info=db.ReferenceProperty(GreetingInfo)


    

class Greeting2(db.Model):
    """Models an individual Guestbook entry with an author, content, and date."""
    author = db.UserProperty()
    content = db.StringProperty(multiline=True)
    date = db.DateTimeProperty(auto_now_add=True)
    finishDate = db.DateTimeProperty(auto_now_add=True)
